package com.maker997.ajax.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 用于登录
 *
 * @author maker
 * @date 2017/11/13
 */
@Controller
@RequestMapping("/login")
public class LoginController {

    @RequestMapping(value = "/click",method = RequestMethod.POST)
    @ResponseBody
    public String login(@Param("username") String username,@Param("password") String password)
    {
        System.out.printf("username:"+username);
        System.out.printf("password:"+password);
        return "登录成功";
    }
}
